package com.itdianzi.domain.system;

import java.io.Serializable;

public class Dept implements Serializable {

private String id;
private String deptName;
/*private String parent_id;*/
private Dept parent;//父部门的对象信息 - 每次查询到当前部门的时候 再查询一次父部门对象 放入parent中即可
private String state;//1代表启用，0代表停用，默认为1  select * from dept where state =1
    //删除是可以有多种删除方式 物理删除 直接删除delete  逻辑删除 有一个状态值 以后表示可用和不可用
    // decimal(6,0) int double
    //参数1: 长度 参数2:小数位   decimal(11,3)  decimal(11,0) = int
private String companyId;
private String companyName;

    @Override
    public String toString() {
        return "Dept{" +
                "id='" + id + '\'' +
                ", deptName='" + deptName + '\'' +
                ", parent=" + parent +
                ", state='" + state + '\'' +
                ", companyId='" + companyId + '\'' +
                ", companyName='" + companyName + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Dept getParent() {
        return parent;
    }

    public void setParent(Dept parent) {
        this.parent = parent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
